/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

/**
 *
 * @author David
 */
public class StructureMapper {
    
    public static StructureDTO getStructureDTO(Structure structure){
        StructureDTO dto = new StructureDTO();
        dto.setName(structure.getName());
        dto.setAuthor(structure.getAuthor());
        dto.setArchitecture(ArchitectureMapper.getArchitectureDTO(structure.getArchitecture()));
        return dto;
    }
    
}
